package com.itlong.cloud.project.smartcard;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;
import java.util.Map;

/**
 * <desc>
 *      一卡通 物业增值业务暴露接口。
 * <desc/>
 *
 * @createDate 2017-12-13.
 */
@FeignClient(name = "project-service")
public interface ISmartCardPropertyValueServiceClient {

    /**
     * <desc>
     *      获取项目下的楼栋单元房间信息
     * </desc>
     *
     * @param json
     * @return
     * @author Jiaqi.X
     * @createDate 2019/06/12
     */
    @RequestMapping(path = "/smartcard/property/value/getBuildAndUnitAndRoomInfo",method = RequestMethod.POST)
    Map<String,Object> getBuildAndUnitAndRoomInfo(@RequestParam("json") String json) throws IOException;


    /**
     * <desc>
     *      保存软卡号
     * </desc>
     *
     * @param json
     * @return
     * @author Jiaqi.X
     * @createDate 2019/06/13
     */
    @RequestMapping(path = "/smartcard/property/value/saveSoftCardNo",method = RequestMethod.POST)
    Integer saveSoftCardNo(@RequestParam("json") String json) throws Exception;
}
